$def with (page)

$ lang = i18n.get_locale() or 'en'
$ _t = i18n.get_namespace('/type/doc')
$ _ = i18n.get_namespace('/mode/edit')

$ _x = ctx.setdefault('bodyid', 'edit')

$var title: $_.edit_title(page.key)

$:render_template("lib/edit_head", page)

<form name="edit" method="post" action="" class="olform">

<div id="contentBody">

    <div class="formElement title">
        <div class="label"><label for="title">$_t.title:</label></div>
        <div class="input">
            <input type="text" name="title" value="$page.title" />
        </div>
    </div>

    $:macros.TypeChanger(page.type)

    <div class="clearfix"></div>

    <div class="formElement">
        <div class="label"><label for="body">$_('Document Body:')</label></div>
        <div class="input">
            <textarea name="body" id="body" rows="15" cols="80">$page.body</textarea>
        </div>
    </div>

    $:macros.EditButtons(comment=page.comment_)

</div>

</form>
